﻿@{
    ViewBag.Title = "Index";
}
@model List<DAL.Order_Info>
@foreach (var item in Model)
{ 
    <p>
        @item.OrderID
        @item.CreateDate
    </p>
   if (item.Order_Detail.Count > 0)
   {
       foreach (var detail in item.Order_Detail)
       { 
    <p style="margin: 10px;">@detail.OrderID @detail.ProductName</p>
       }
   }
}
